package com.art8173.day7.question_1;

public class Vehicle {
    private String brand;
    private String type;

    public void  start(){
        System.out.println(this.brand+"开始启动");
    }
    public void  run(){
        System.out.println(this.brand+"在高速公路上行驶");
    }

    public Vehicle() {
    }

    public Vehicle(String type, String brand) {
        this.type = type;
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
